package com.transport.service;

import java.util.Map;

import com.transport.dao.WordDao;
import com.transport.model.Word;
import com.transport.utils.PageSet;

public class WordService {
	private WordDao wordDao;

	public WordDao getWordDao() {
		return wordDao;
	}

	public void setWordDao(WordDao wordDao) {
		this.wordDao = wordDao;
	}

	public Map queryWordList(PageSet pageSet) {
		return wordDao.queryWordList(pageSet);
	}

	public String checkExist(Word word) {
		return wordDao.checkExist(word);
	}

	public String addWord(Word word) {
		return wordDao.addWord(word);
	}

	public void deleteWord(String id) {
		wordDao.deleteWord(id);
	}

	public Word queryWordById(String id) {
		return wordDao.queryWordById(id);
	}

	public String updateWord(Word word) {
		return wordDao.updateWord(word);
	}
	
	
}
